package com.coc.ofhibernate.repository.second;

import com.coc.ofhibernate.entity.database2.Person;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface SecondRepository extends JpaRepository<Person,Integer> {

    @Query(value = "from Person where id = ?1 ")
    public Person getUserById(Integer id);

}
